package com.sie.plm.rpm.standar.vo;

import java.util.List;

public class TeamVO {
    private String rolename;
    private String roleoid;
    private String oid;
    private String otype;
    private String rname;
    private String parentoid;

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }

    private List<TeamVO> children;
    private boolean hasChildren;
    private String fullname;
    private String linkoid;
    private String type;
    private String name;

    public void setRoleoid(String roleoid) {
        this.roleoid = roleoid;
    }

    public void setOid(String oid) {
        this.oid = oid;
    }

    public void setOtype(String otype) {
        this.otype = otype;
    }

    public void setRname(String rname) {
        this.rname = rname;
    }

    public void setParentoid(String parentoid) {
        this.parentoid = parentoid;
    }

    public void setChildren(List<TeamVO> children) {
        this.children = children;
    }

    public void setHasChildren(boolean hasChildren) {
        this.hasChildren = hasChildren;
    }

    public void setFullname(String fullname) {
        this.fullname = fullname;
    }

    public void setLinkoid(String linkoid) {
        this.linkoid = linkoid;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof TeamVO)) {
            return false;
        }
        TeamVO other = (TeamVO) o;
        if (!other.canEqual(this)) {
            return false;
        }
        if (isHasChildren() != other.isHasChildren()) {
            return false;
        }
        Object this$rolename = getRolename(), other$rolename = other.getRolename();
        if ((this$rolename == null) ? (other$rolename != null) : !this$rolename.equals(other$rolename)) {
            return false;
        }
        Object this$roleoid = getRoleoid(), other$roleoid = other.getRoleoid();
        if ((this$roleoid == null) ? (other$roleoid != null) : !this$roleoid.equals(other$roleoid)) {
            return false;
        }
        Object this$oid = getOid(), other$oid = other.getOid();
        if ((this$oid == null) ? (other$oid != null) : !this$oid.equals(other$oid)) {
            return false;
        }
        Object this$otype = getOtype(), other$otype = other.getOtype();
        if ((this$otype == null) ? (other$otype != null) : !this$otype.equals(other$otype)) {
            return false;
        }
        Object this$rname = getRname(), other$rname = other.getRname();
        if ((this$rname == null) ? (other$rname != null) : !this$rname.equals(other$rname)) {
            return false;
        }
        Object this$parentoid = getParentoid(), other$parentoid = other.getParentoid();
        if ((this$parentoid == null) ? (other$parentoid != null) : !this$parentoid.equals(other$parentoid)) {
            return false;
        }
        Object this$children =  getChildren(), other$children =  other.getChildren();
        if ((this$children == null) ? (other$children != null) : !this$children.equals(other$children)) {
            return false;
        }
        Object this$fullname = getFullname(), other$fullname = other.getFullname();
        if ((this$fullname == null) ? (other$fullname != null) : !this$fullname.equals(other$fullname)) {
            return false;
        }
        Object this$linkoid = getLinkoid(), other$linkoid = other.getLinkoid();
        if ((this$linkoid == null) ? (other$linkoid != null) : !this$linkoid.equals(other$linkoid)) {
            return false;
        }
        Object this$type = getType(), other$type = other.getType();
        if ((this$type == null) ? (other$type != null) : !this$type.equals(other$type)) {
            return false;
        }
        Object this$name = getName(), other$name = other.getName();
        return !((this$name == null) ? (other$name != null) : !this$name.equals(other$name));
    }

    protected boolean canEqual(Object other) {
        return other instanceof TeamVO;
    }

    public int hashCode() {
        int PRIME = 59,
        result = 1;
        result = result * 59 + (isHasChildren() ? 79 : 97);
        Object $rolename = getRolename();
        result = result * 59 + (($rolename == null) ? 43 : $rolename.hashCode());
        Object $roleoid = getRoleoid();
        result = result * 59 + (($roleoid == null) ? 43 : $roleoid.hashCode());
        Object $oid = getOid();
        result = result * 59 + (($oid == null) ? 43 : $oid.hashCode());
        Object $otype = getOtype();
        result = result * 59 + (($otype == null) ? 43 : $otype.hashCode());
        Object $rname = getRname();
        result = result * 59 + (($rname == null) ? 43 : $rname.hashCode());
        Object $parentoid = getParentoid();
        result = result * 59 + (($parentoid == null) ? 43 : $parentoid.hashCode());
        Object $children =  getChildren();
        result = result * 59 + (($children == null) ? 43 : $children.hashCode());
        Object $fullname = getFullname();
        result = result * 59 + (($fullname == null) ? 43 : $fullname.hashCode());
        Object $linkoid = getLinkoid();
        result = result * 59 + (($linkoid == null) ? 43 : $linkoid.hashCode());
        Object $type = getType();
        result = result * 59 + (($type == null) ? 43 : $type.hashCode());
        Object $name = getName();
        return result * 59 + (($name == null) ? 43 : $name.hashCode());
    }

    public String toString() {
        return "TeamVO(rolename=" + getRolename() + ", roleoid=" + getRoleoid() + ", oid=" + getOid() + ", otype=" + getOtype() + ", rname=" + getRname() + ", parentoid=" + getParentoid() + ", children=" + getChildren() + ", hasChildren=" + isHasChildren() + ", fullname=" + getFullname() + ", linkoid=" + getLinkoid() + ", type=" + getType() + ", name=" + getName() + ")";
    }


    public String getRolename() {
        return this.rolename;
    }


    public String getRoleoid() {
        return this.roleoid;
    }


    public String getOid() {
        return this.oid;
    }


    public String getOtype() {
        return this.otype;
    }


    public String getRname() {
        return this.rname;
    }


    public String getParentoid() {
        return this.parentoid;
    }


    public List<TeamVO> getChildren() {
        return this.children;
    }


    public boolean isHasChildren() {
        return this.hasChildren;
    }


    public String getFullname() {
        return this.fullname;
    }


    public String getLinkoid() {
        return this.linkoid;
    }


    public String getType() {
        return this.type;
    }


    public String getName() {
        return this.name;
    }
}

